﻿namespace Smark.Core
{
    using System;
    using System.Reflection;

    public class MethodHandler
    {
        private FastMethodHandler mExecute;
        private MethodInfo mInfo;

        public MethodHandler(MethodInfo method)
        {
            this.mExecute = ReflectionHandlerFactory.MethodHandler(method);
            this.mInfo = method;
        }

        public FastMethodHandler Execute
        {
            get
            {
                return this.mExecute;
            }
        }

        public MethodInfo Info
        {
            get
            {
                return this.mInfo;
            }
        }
    }
}

